package com.miraclemiles.vo;

import java.util.Collection;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import lombok.Getter;

public class LoginUser extends User {

	@Getter
	private Long id;
	@Getter
	private Long deptId;
	@Getter
	private Long employeeId;
	@Getter
	private String email;
	@Getter
	private String mobile;

	public LoginUser(Long id, Long deptId, Long employeeId, String email, String mobile, String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked,
			Collection<? extends GrantedAuthority> authorities) {
		super(username, password, enabled, accountNonExpired, credentialsNonExpired, accountNonLocked, authorities);
		
		this.id = id;
		this.deptId = deptId;
		this.employeeId = employeeId;
		this.email = email;
		this.mobile = mobile;
	}

	private static final long serialVersionUID = 1L;

}
